package com.yao.shardingdemo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author Henry Yao
 * <p>
 * create table t_user_1
 * (
 * uid int default 0 not null
 * primary key,
 * name varchar(64) null,
 * age int null
 * );
 * <p>
 * create table t_user_0
 * (
 * uid int default 0 not null
 * primary key,
 * name varchar(64) null,
 * age int null
 * );
 */
@Data
@AllArgsConstructor
public class User {
    private int uid;
    private String name;
    private int age;
}
